package com.redtree.air.db
{
	
	public class Contact extends Object
	{
		
		public const CONTACT_TYPE_QQQ:int=1;
		public const CONTACT_TYPE_EML:int=2;		
		public const CONTACT_TYPE_MOB:int=3;
		public const CONTACT_TYPE_TEL:int=4;		
		public const CONTACT_TYPE_MSN:int=5;
		
		private var _id:int;
		private var _name:String;
		private var _content:String;
		private var _deptId:int;
		private var _deptName:String;
		private var _typeId:int;
		private var _typeName:String;
		private var _securityLevel:int;
		private var _securityName:String;
		
		public function Contact(row:Object)
		{
			super();
			_id = row['id'];
			_name = row['name'];
			_content = row['content'];
			_deptId = row['dept_id'];
			_deptName = row['dept_name'];
			_typeId = row['type_id'];
			_typeName = row['type_name'];
			_securityLevel = row['security_level'];
			_securityName = row['security_name'];				
		}

		public function get securityName():String
		{
			return _securityName;
		}

		public function set securityName(value:String):void
		{
			_securityName = value;
		}

		public function get id():int
		{
			return _id;
		}

		public function set id(value:int):void
		{
			_id = value;
		}

		public function get content():String
		{
			return _content;
		}

		public function set content(value:String):void
		{
			_content = value;
		}

		public function get name():String
		{
			return _name;
		}

		public function set name(value:String):void
		{
			_name = value;
		}

		public function get deptId():int
		{
			return _deptId;
		}

		public function set deptId(value:int):void
		{
			_deptId = value;
		}

		public function get deptName():String
		{
			return _deptName;
		}

		public function set deptName(value:String):void
		{
			_deptName = value;
		}

		public function get typeId():int
		{
			return _typeId;
		}

		public function set typeId(value:int):void
		{
			_typeId = value;
		}

		public function get typeName():String
		{
			return _typeName;
		}

		public function set typeName(value:String):void
		{
			_typeName = value;
		}

		public function get securityLevel():int
		{
			return _securityLevel;
		}

		public function set securityLevel(value:int):void
		{
			_securityLevel = value;
		}


	}
}